package com.study.decorator.impl;

import com.study.decorator.MilkyTea;
import com.study.decorator.MilkyTeaDecorator;

/**
 * 布丁奶茶
 */
public class PuddingDecorator  extends MilkyTeaDecorator {
    public PuddingDecorator(MilkyTea milkyTea) {
        super(milkyTea);
    }


    @Override
    public double cost() {
        System.out.println("添加布丁");
        return super.cost() + 1.5;
    }

}
